<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改作业执行阶段')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-executionphase-edit" th:object="${mydoJob}">
<!--            <input name="jobId" th:field="*{jobId}" type="hidden">-->

            <div class="form-group">
                <label class="col-sm-3 control-label">作业编号：</label>
                <div class="col-sm-8">
                    <input name="jobId" th:field="*{jobId}" class="form-control" type="text" readonly>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">任务号：</label>
                <div class="col-sm-8">
                    <input name="taskNo" th:field="*{taskNo}" class="form-control" type="text" readonly>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">托盘条码：</label>
                <div class="col-sm-8">
                    <input name="trayCode" th:field="*{trayCode}" class="form-control" type="text" readonly>
                </div>
            </div>

            <div class="form-group">    
<!--                <label class="col-sm-3 control-label">执行阶段：</label>-->
<!--                <div class="col-sm-8">-->
<!--                    <select name="executionPhase" class="form-control m-b" th:with="type=${@dict.getType('execution_phase')}">-->
<!--                        <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="dict.dictValue" th:field="*{executionPhase}"></option>-->
<!--                    </select>-->
<!--                </div>-->

                <label class="col-sm-3 control-label">执行阶段：</label>
                <div class="col-sm-8">
                    <select name="executionPhase" class="form-control m-b" th:with="type=${@dict.getType('execution_phase')}">
                        <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{executionPhase}"></option>
                    </select>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">入口：</label>
                <div class="col-sm-8">
                    <input name="entranceId" th:field="*{entranceId}" class="form-control" type="text" readonly>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">出口：</label>
                <div class="col-sm-8">
                    <input name="exitId" th:field="*{exitId}" class="form-control" type="text" readonly>
                </div>
            </div>


        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var prefix = ctx + "device/executionphase";
        $("#form-executionphase-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/edit", $('#form-executionphase-edit').serialize());
            }
        }
    </script>
</body>
</html>